package com.archive.entity;

import java.math.BigDecimal;

import com.baomidou.mybatisplus.annotation.*;

import java.time.LocalDateTime;
import java.io.Serializable;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 科研项目表
 * </p>
 *
 * @author Janus
 * @since 2024-03-17
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("tb_keyan_project")
@ApiModel(value="KeyanProject对象", description="科研项目表")
public class KeyanProject implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty(value = "教师ID")
    private Long userId;

    @ApiModelProperty(value = "教师名称")
    private String userName;

    @ApiModelProperty(value = "项目名称")
    private String name;

    @ApiModelProperty(value = "状态：0 待审核；1 已审核；2 已驳回")
    private Integer state;

    @ApiModelProperty(value = "驳回意见")
    private String replyInfo;

    @ApiModelProperty(value = "项目级别：国家级、省部级、厅局级、校级、其他")
    private String level;

    @TableField(exist = false)
    private String levelStr;

    @ApiModelProperty(value = "项目时间")
    private LocalDateTime checkTime;

    @ApiModelProperty(value = "机构名称")
    private String organization;

    @ApiModelProperty(value = "项目成员")
    private String otherUser;

    @ApiModelProperty(value = "项目负责人")
    private String projectLeader;

    @ApiModelProperty(value = "项目完成情况")
    private String completeInfo;

    @ApiModelProperty(value = "总经费")
    private BigDecimal totalAmount;

    @ApiModelProperty(value = "备注")
    private String remark;

    @ApiModelProperty(value = "附件")
    private String fileInfo;

    @ApiModelProperty(value = "创建时间")
    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime createTime;

    @ApiModelProperty(value = "更新时间")
    @TableField(fill = FieldFill.UPDATE)
    private LocalDateTime updateTime;


    @TableField(exist = false)
    @JsonFormat(pattern = "yyyy-MM-dd")
    private LocalDateTime projectStart;

    @TableField(exist = false)
    @JsonFormat(pattern = "yyyy-MM-dd")
    private LocalDateTime projectEnd;


}
